import java.util.Arrays;

public class FiveFingerChess {

    public static void main(String[] args) {

        char [] row = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','f'};
        char [] sym = {'+','+','+','+','+','+','+','+','+','+','+','+','+','+','+'};

        printImg(row, sym);
    }

    public static String mkstring(char[] arr, char symbol) {
        StringBuilder sb = new StringBuilder();
        int cnt = 0;
        for (char ch: arr) {
            sb.append(ch);
            if(cnt != arr.length -1) sb.append(symbol);
        }

        return sb.toString();
    }

    public static void printImg(char[] arr, char [] sym) {
        for (int i = 0; i <= arr.length; i++) {
            if (i == 0) {
                System.out.print('\t');
                System.out.println(mkstring(arr, '\t'));
            } else {
                System.out.print(arr[i - 1]);
                System.out.println('\t' + mkstring(sym, '\t'));
            }
        }
    }

}
